package pattern.decorator;

/*
 * @author changfei
 * @date  2023/11/28 15:24
 * @description
 */
public class Egg  extends Ingredients{
    public Egg(FireRice fireRice) {
        super(fireRice);
    }

    @Override
    public String desc() {
        return super.desc()+"+鸡蛋";
    }

    @Override
    public int price() {
        return super.price()+2;
    }
}
